/**
 * 系统常量
 */

// 路由相关
export const ROUTE_HOME = '/dashboard';
export const ROUTE_LOGIN = '/login';
export const ROUTE_REGISTER = '/register';
export const ROUTE_FORGOT_PASSWORD = '/forgot-password';
export const ROUTE_ERROR_404 = '/404';
export const ROUTE_ERROR_403 = '/403';
export const ROUTE_ERROR_500 = '/500';

// 权限相关
export const ROLE_ADMIN = 'admin';
export const ROLE_USER = 'user';
export const ROLE_GUEST = 'guest';

// 响应状态码
export const CODE_SUCCESS = 200;
export const CODE_CREATED = 201;
export const CODE_ACCEPTED = 202;
export const CODE_BAD_REQUEST = 400;
export const CODE_UNAUTHORIZED = 401;
export const CODE_FORBIDDEN = 403;
export const CODE_NOT_FOUND = 404;
export const CODE_SERVER_ERROR = 500;

// 本地存储Key
export const LANG_KEY = 'bs_admin_lang';
export const THEME_KEY = 'bs_admin_theme';
export const LAYOUT_KEY = 'bs_admin_layout';

// 主题相关
export const THEME_LIGHT = 'light';
export const THEME_DARK = 'dark';

// 布局相关
export const LAYOUT_VERTICAL = 'vertical';
export const LAYOUT_HORIZONTAL = 'horizontal';

// 分页相关
export const DEFAULT_PAGE_SIZE = 10;
export const DEFAULT_PAGE_SIZES = [10, 20, 50, 100];

// 文件上传相关
export const UPLOAD_MAX_SIZE = 10 * 1024 * 1024; // 10MB
export const ALLOWED_FILE_TYPES = ['image/jpeg', 'image/png', 'image/gif', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'];

// 日期时间格式
export const DATE_FORMAT = 'YYYY-MM-DD';
export const TIME_FORMAT = 'HH:mm:ss';
export const DATETIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'; 